package com.gtm.model;

import com.mongodb.DBObject;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
import java.util.List;

/**
 * Created by 骆清波 on 2017/10/28.
 */
@Document(collection = "topic")
public class Topic {
    @Id
    private String id;
    private String teacherId;
    private String teacherName;
    private String teacherTel;
    private String topicName;
    private String teacherUserName;
    private String topicSrc;
    private String topicType;
    Boolean markedDel=Boolean.valueOf(true);
    private String requirement;
    private String introduction;
    private int limitPerson;
    private int chosePerson=Integer.parseInt("0");
    private Date finalTime;
    private List<DBObject> studentList;
    private String state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherTel() {
        return teacherTel;
    }

    public void setTeacherTel(String teacherTel) {
        this.teacherTel = teacherTel;
    }

    public String getTopicSrc() {
        return topicSrc;
    }

    public void setTopicSrc(String topicSrc) {
        this.topicSrc = topicSrc;
    }

    public String getTopicType() {
        return topicType;
    }

    public void setTopicType(String topicType) {
        this.topicType = topicType;
    }

    public Boolean getMarkedDel() {
        return markedDel;
    }

    public void setMarkedDel(Boolean markedDel) {
        this.markedDel = markedDel;
    }

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public int getLimitPerson() {
        return limitPerson;
    }

    public void setLimitPerson(int limitPerson) {
        this.limitPerson = limitPerson;
    }

    public String getTeacherUserName() {
        return teacherUserName;
    }

    public void setTeacherUserName(String teacherUserName) {
        this.teacherUserName = teacherUserName;
    }

    public Date getFinalTime() {
        return finalTime;
    }

    public void setFinalTime(Date finalTime) {
        this.finalTime = finalTime;
    }

    public int getChosePerson() {
        return chosePerson;
    }

    public void setChosePerson(int chosePerson) {
        this.chosePerson = chosePerson;
    }

    public List<DBObject> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<DBObject> studentList) {
        this.studentList = studentList;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Topic{" +
                "id='" + id + '\'' +
                ", teacherId='" + teacherId + '\'' +
                ", teacherName='" + teacherName + '\'' +
                ", teacherTel='" + teacherTel + '\'' +
                ", topicName='" + topicName + '\'' +
                ", teacherUserName='" + teacherUserName + '\'' +
                ", topicSrc='" + topicSrc + '\'' +
                ", topicType='" + topicType + '\'' +
                ", markedDel=" + markedDel +
                ", requirement='" + requirement + '\'' +
                ", introduction='" + introduction + '\'' +
                ", limitPerson=" + limitPerson +
                ", chosePerson=" + chosePerson +
                ", finalTime=" + finalTime +
                ", studentList=" + studentList +
                ", state='" + state + '\'' +
                '}';
    }
}
